package org.leon.pojo;


public enum SqlTypeEnum {
    SELECT("select"),
    INSERT("insert"),
    DELETE("delete"),
    UPDATE("update");

    private String type;

    SqlTypeEnum(String type) {
        this.type = type;
    }

    public static SqlTypeEnum getType(String typeName){
        SqlTypeEnum t = null;
        switch (typeName) {
            case "select":
                t = SqlTypeEnum.SELECT;
                break;
            case "insert":
                t = SqlTypeEnum.INSERT;
                break;
            case "delete":
                t = SqlTypeEnum.DELETE;
                break;
            case "update":
                t = SqlTypeEnum.UPDATE;
                break;
            default:

        }
        return t;
    }
}
